/*
**  Copyright (C), CHENGDU GONGWEI TECHNOLOGY CO.,LTD.
**
**  Project:	Manager Unit v1.0
**  File:    	
**  Author: 	zhaozhuyu
**  Date:    	2017/05/20
**
**  Purpose:
**    		.
**
**  History: 
**  <author>   <time>          <version >   <desc>
*	$$Author$$
*/

#ifndef 	__ASSERT_H__
#define 	__ASSERT_H__

/* Include files. */

/* Macro constant definitions. */

/* Macro API definitions. */

#ifndef assert
#define assert ASSERT
#endif

#define ASSERT(condition) \
do { \
	if (!(condition)) {  \
		mu_assert((char *)__FILE__, __LINE__, #condition); \
	}  \
}while(0)

/* Type definitions. */

/* External variable declarations. */

/* External function declarations. */
void mu_assert(const char *file, unsigned int line, const char *condition);  

#endif 
